package com.example.suntest.service3;

import com.example.suntest.entity.User;
import com.example.suntest.entity.UserDTO;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @version 1.0
 * @Package: com.example.suntest.service3
 * @ClassName: ConversionStrategy
 * @Author: sgq
 * @Date: 2024/7/11 9:28
 * @Description: TODD
 */
@Getter
public enum ConversionStrategy {

    USER_TO_USER_DTO(User.class, UserDTO.class),
    ;

    private Class<?> sourceType;
    private Class<?> targetType;

    ConversionStrategy(Class<?> sourceType, Class<?> targetType) {
        this.sourceType = sourceType;
        this.targetType = targetType;
    }
}